<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/sockjs.min.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="js/bootstrap.min.js"></script>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<script>
	
	
	
	function login(){		
		document.forms[0].submit();
	}
	$(function(){ 
		$('#myModal').modal({keyboard:false}); 
	});


</script>
</head>
<body>
	
	<!-- Modal -->
	<div class="modal fade" id="myModal" role="dialog" >
	  <div class="modal-dialog" role="document">
	    <div class="modal-content"> 
	    <form action="/websocket/login" method="post">
	      <div class="modal-body">
	        <label for="message-text" class="control-label">大侠贵姓:</label>
	         <input type="text" class="form-control" id="name" name="username">
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-primary" onclick="login()" data-dismiss="modal">提交</button>
	      </div>
	      </form>
	    </div>
	  </div>
	</div>
</body>
</html>